home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 25
/
Cream of the Crop 25.iso
/
editor
/
wabd101.zip
/
WABD101.ZIP
/
Demo
/
Main.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1997-02-27
|
2KB
|
101 lines
unit Main;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
HTMLForm, HTMLImage, HTMLHeader, ExtCtrls, HTMLFormSection, StdCtrls,
HTMLBodySettings;
type
TMainForm = class(THTMLForm)
HTMLFormSection1: THTMLFormSection;
MainImage: THTMLImage;
HTMLHeader1: THTMLHeader;
Button1: TButton;
DelphiBox: TPaintBox;
WABBox: TPaintBox;
MonitorBox: TPaintBox;
HammerBox: TPaintBox;
KeyboardBox: TPaintBox;
TowerBox: TPaintBox;
Label1: TLabel;
CPUBox: TPaintBox;
Label2: TLabel;
HTMLBodySettings1: THTMLBodySettings;
BgndImage: THTMLImage;
ResponseLabel: TLabel;
procedure Button1Click(Sender: TObject);
procedure DelphiBoxClick(Sender: TObject);
procedure WABBoxClick(Sender: TObject);
procedure MonitorBoxClick(Sender: TObject);
procedure CPUBoxClick(Sender: TObject);
procedure KeyboardBoxClick(Sender: TObject);
procedure HammerBoxClick(Sender: TObject);
procedure TowerBoxClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
MainForm: TMainForm;
implementation
uses Monitor;
{$R *.DFM}
procedure TMainForm.Button1Click(Sender: TObject);
begin
EndSession('Thanks for trying WABD !');
end;
procedure TMainForm.DelphiBoxClick(Sender: TObject);
begin
ResponseLabel.Caption := 'You clicked on "For Delphi"';
end;
procedure TMainForm.WABBoxClick(Sender: TObject);
begin
ResponseLabel.Caption := 'You clicked on "WABD"';
end;
procedure TMainForm.MonitorBoxClick(Sender: TObject);
begin
ResponseLabel.Caption := 'You clicked on the Monitor';
ShowFormType(TMonitorForm);
end;
procedure TMainForm.CPUBoxClick(Sender: TObject);
begin
ResponseLabel.Caption := 'You clicked on the CPU Chip';
end;
procedure TMainForm.KeyboardBoxClick(Sender: TObject);
begin
ResponseLabel.Caption := 'You clicked on the keyboard';
end;
procedure TMainForm.HammerBoxClick(Sender: TObject);
begin
ResponseLabel.Caption := 'You clicked on the hammer';
end;
procedure TMainForm.TowerBoxClick(Sender: TObject);
begin
ResponseLabel.Caption := 'You clicked on the Tower';
end;
procedure TMainForm.FormCreate(Sender: TObject);
begin
ResponseLabel.Caption := '';
end;
initialization
RegisterHTMLForm(TMainForm);
end.